<#-- 默认发红包金额分配列表 -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<base href="${baseURL}">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>发红包金额分配 - ${title}</title>
	<meta name="keywords" content="${keywords}"/>
	<meta name="description" content="${description}"/>
	<#-- 获取令牌 -->
	<meta name="csrfToken" content="${token}"/>
	<link href="${commonPath}css/common.css" type="text/css" rel="stylesheet" charset="utf-8">
	<link href="${commonPath}css/themify-icons/style.css" type="text/css" rel="stylesheet">
	<script language="javascript" src="${commonPath}js/tool.js" type="text/javascript"></script>
	<script language="javascript" src="${commonPath}js/ajax.js" type="text/javascript"></script>
	<script language="javascript" src="${commonPath}js/json2.js" type="text/javascript"></script>
	<script language="javascript" src="${commonPath}js/jquery/jquery.min.js" type="text/javascript"></script>
	<script type="text/javascript" src="${commonPath}js/jquery/jquery.letterAvatar.js" language="javascript"></script>
	<link href="${commonPath}js/layer/skin/default/layer.css"  type="text/css" rel="stylesheet"/>
	<script type="text/javascript" src="${commonPath}js/layer/layer.js" language="javascript"></script>
</head>
<script type="text/javascript" language="javascript"> 

</script>
<body>
<#-- 引入页头 -->
<@include action="${newPublic_2}"/>
<div class="skeleton">
	<div class="main wrap backgroundModule" >

		<#-- 引入服务导航 -->
		<@include action="${newPublic_4}"/>
	
		<!-- 红包  -->
		<div class="redEnvelopeHeadModule">
			<span class="text">
				<span class="name">类型：</span>
				<#if giveRedEnvelope.type == 10>
					个人定向红包
				<#elseif giveRedEnvelope.type == 20>
					公共随机红包
				<#elseif giveRedEnvelope.type == 30>
					公共定额红包
				</#if>	
			</span>
			<span class="text">
				<span class="name">总金额：</span>￥${giveRedEnvelope.totalAmount}
				<#if giveRedEnvelope.refundAmount gt 0 > 
					<span style="color: red;">中止领取红包后返还金额￥${giveRedEnvelope.refundAmount}</span>
				</#if>
			</span>
			<span class="text"><span class="name">发放数量：</span>${giveRedEnvelope.giveQuantity}</span>
			<#if giveRedEnvelope.remainingQuantity != null > 
				<span class="text"><span class="name">已领取数量：</span>${giveRedEnvelope.giveQuantity - giveRedEnvelope.remainingQuantity}</span>
		 	</#if>
		 	<span class="text"><span class="name">时间：</span>${giveRedEnvelope.giveTime}</span>
			<span class="topic">
				<a href="thread?topicId=${giveRedEnvelope.bindTopicId}" target="_blank" class="link">${giveRedEnvelope.bindTopicTitle}</a>
			</span>
		</div>
		<div class="clearfix" style="height: 10px;background: #f8f8f9;"></div>
		<div class="dataTable">
			<TABLE class="dataList" width="100%">
				<THEAD>
					<TR class="dataThead">
						<TH width="50%">收红包用户</TH>
					    <TH width="20%">金额</TH>
					    <TH width="30%">收取时间</TH>
					</TR>
				</THEAD>
				<TBODY>
		    		<#if pageView.records?exists && pageView.records?size gt 0 >    
						<#list pageView.records as receiveRedEnvelope>
						<TR>
							<TD class="dataTD redEnvelopeAmountDistributionModule" style="text-align: left! important;">
								<div class="avatarBox">
									<a href="user/control/home?userName=${receiveRedEnvelope.receiveUserName}" target="_blank" class="link">
										<#if receiveRedEnvelope.receiveAvatarName != null && receiveRedEnvelope.receiveAvatarName != ''>    
											<img src="${receiveRedEnvelope.receiveAvatarPath}100x100/${receiveRedEnvelope.receiveAvatarName}" >
							            </#if> 
							            
							        	<#if receiveRedEnvelope.receiveAvatarName == null || receiveRedEnvelope.receiveAvatarName == ''>    
											<!-- 首字符头像-->
							         		<img avatar="${(receiveRedEnvelope.receiveNickname != null && receiveRedEnvelope.receiveNickname??) ?string(receiveRedEnvelope.receiveNickname , receiveRedEnvelope.receiveAccount)}" >
							            </#if> 
									</a>
								</div>
								<a href="user/control/home?userName=${receiveRedEnvelope.receiveUserName}" target="_blank" class="link userName">
									${receiveRedEnvelope.receiveAccount}
									<#if receiveRedEnvelope.receiveNickname != null && receiveRedEnvelope.receiveNickname??>    
										（呢称：${receiveRedEnvelope.receiveNickname}）
									</#if> 
								</a>
								<#if receiveRedEnvelope.receiveAccount == null || receiveRedEnvelope.receiveAccount == ''>    
									<span class="cancelAccount userName" >此用户账号已注销</span>
								</#if> 
							</TD>
							<TD class="dataTD">
								${receiveRedEnvelope.amount}
							</TD>
							<TD class="dataTD">${receiveRedEnvelope.receiveTime}</TD>
			    		</TR>
			    		</#list>
			    	</#if> 
				    <#if !pageView.records?exists || pageView.totalrecord == 0 > 
				    	<TR>
							<TD colSpan="4" class="empty">还没有金额分配</TD>
				    	</TR>
					</#if>
		    	</TBODY>
			</TABLE>
			<DIV class=pageList>
				<@include action="${newPublic_1}"/>
			</DIV>
		</div>

	</div>

</div>
<#--引入页脚-->
<@include action="${newPublic_3}"/>
</body>

</html>

